getTableArray Query failed: ERROR: syntax error at or near "this" LINE 1: ...'/' || page || '/' || subpage) like '%/scripts/' this.data_... ^ select * from widgets where ((('/' || section || '/' || page || '/' || subpage) like '%/scripts/' this.data_sources[i].link '%' AND (POSITION (section IN '/scripts/' this.data_sources[i].link '') > 0) ) OR (('/' || section || '/' || page || '/' || subpage) like '/default/scripts/' this.data_sources[i].link '%')) and (("class" = 'workspace' OR "class" = 'secondary-navigation') ) order by arrangeby;